<include file="public@header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('pinpai/list')}">商品列表</a></li>
			<li class="active"><a href="{:url('pinpai/add_list')}">新增商品</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20 layui-form" action="{:url('pinpai/add_list')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>标签</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="pinpai_id">
						<option value="">请选择</option>
						<foreach name="pinpai_list" item="vo">
							<option value="{$vo.id}">{$vo.title}</option>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>店铺</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="store_id" lay-filter="store_id" lay-search>
						<option value="">请选择</option>
						<foreach name="store_list" item="l">
							<option value="{$l.id}">{$l.name}</option>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script type="text/javascript" src="__STATIC__/layui/layui.js"></script>
	<script type="text/javascript">
	    layui.config({
			base: '__STATIC__/layui/dist/'
		}).use(['layer', 'jquery','form'], function () {
	    	var layer = layui.layer,form = layui.form;
    		var $ = layui.jquery;
	    });
	</script>
</body>
</html>